﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ZoneFiveSoftware.Common.Visuals;

namespace STCommon.View
{
    public class ReportsLayoutActionBanner : ActionBanner
    {
        public ReportsLayoutActionBanner()
        {
            HasMenuButton = false;

            m_LayoutButton = CreateMenuButton();
            m_LayoutButton.Size = new Size(23, 25);
            m_LayoutButton.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            m_LayoutButton.CenterImage = Resources.Resources.ReportLayoutMenuButton;
            m_LayoutButton.Location = new Point(this.Width - m_LayoutButton.Width - 2, 0);
            m_LayoutButton.Click += new EventHandler(layoutButton_Click);

            Controls.Add(m_LayoutButton);
        }

        void layoutButton_Click(object sender, EventArgs e)
        {
            if (LayoutButtonClick != null)
            {
                LayoutButtonClick(this, e);
            }
        }

        public event EventHandler LayoutButtonClick;

        private ZoneFiveSoftware.Common.Visuals.Button m_LayoutButton = null;
    }
}
